/* ============================================
   STYLE.CSS - Sistema de Reservas de Equipamiento
   Versión optimizada con botones modernos
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.container { max-width: 1400px; margin: 0 auto; padding: 15px; }

/* ===== HEADER ===== */
.header {
    background-color: #fff;
    padding: 12px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.header h1 { font-size: 18px; font-weight: 400; color: #5f6368; }

.user-info { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 13px; 
    color: #5f6368; 
    flex-wrap: wrap; 
}

/* ===== LOGIN ===== */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-container h2 { 
    margin-bottom: 25px; 
    color: #202124; 
    font-weight: 500; 
    text-align: center; 
    font-size: 24px; 
}

/* ===== FORMULARIOS ===== */
.form-group { margin-bottom: 15px; }

.form-group label { 
    display: block; 
    margin-bottom: 6px; 
    color: #5f6368; 
    font-size: 13px; 
    font-weight: 500; 
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #dadce0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #a8c7fa;
    box-shadow: 0 0 0 3px rgba(168, 199, 250, 0.1);
}

/* ===== SISTEMA DE BOTONES MODERNO ===== */

/* Base común para todos los botones */
button, .btn {
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    border-radius: 6px;
    font-weight: 500;
}

/* Botón PRIMARIO (Azul pastel) */
.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #a8c7fa 0%, #8ab4f8 100%);
    color: #1f1f1f;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(168, 199, 250, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8ab4f8 0%, #669df6 100%);
    box-shadow: 0 4px 8px rgba(138, 180, 248, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(168, 199, 250, 0.3);
}

/* Botón SECUNDARIO (Gris suave) */
.btn-secondary {
    padding: 9px 18px;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 13px;
    border: 1px solid #dadce0;
}

.btn-secondary:hover {
    background: #e8eaed;
    border-color: #c4c7c9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Botón PELIGRO (Rosa pastel) */
.btn-danger {
    background: linear-gradient(135deg, #fce8e6 0%, #f8d7da 100%);
    color: #c5221f;
    padding: 10px 20px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(252, 232, 230, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    box-shadow: 0 4px 8px rgba(248, 215, 218, 0.4);
    transform: translateY(-1px);
}

/* Botón ÉXITO (Verde pastel) */
.btn-success {
    background: linear-gradient(135deg, #e6f4ea 0%, #c8e6c9 100%);
    color: #137333;
    padding: 10px 20px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(230, 244, 234, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    box-shadow: 0 4px 8px rgba(200, 230, 201, 0.4);
    transform: translateY(-1px);
}

/* Botón WARNING (Amarillo pastel) */
.btn-warning {
    background: linear-gradient(135deg, #fef7e0 0%, #fde8b0 100%);
    color: #ea8600;
    padding: 10px 20px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(254, 247, 224, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fde8b0 0%, #fdd663 100%);
    box-shadow: 0 4px 8px rgba(253, 232, 176, 0.4);
    transform: translateY(-1px);
}

/* Botón SMALL (Para tablas y acciones secundarias) */
.btn-small {
    padding: 6px 12px;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 12px;
    border: 1px solid #dadce0;
}

.btn-small:hover {
    background: #e8eaed;
    border-color: #c4c7c9;
}

/* Botón LOGOUT */
.btn-logout {
    padding: 7px 14px;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 12px;
    border: 1px solid #dadce0;
}

.btn-logout:hover {
    background: #fce8e6;
    color: #c5221f;
    border-color: #f8d7da;
}

/* ===== TABS ADMIN ===== */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    background: #f1f3f4;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #e8eaed;
}

.tab-btn.active { 
    background: linear-gradient(135deg, #a8c7fa 0%, #8ab4f8 100%);
    color: #1f1f1f; 
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(168, 199, 250, 0.3);
}

.tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);

	text-align: center;
}

.tab-content.active { display: block; }

/* ===== CALENDARIO - HEADER ===== */
.calendar-header {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.calendar-nav { 
    display: flex; 
    align-items: center; 
    position: relative;
    width: 100%;
    justify-content: flex-start;
}

.calendar-nav button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #e6f4ea 0%, #c8e6c9 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #137333;
    margin-right: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(230, 244, 234, 0.3);
}

.calendar-nav button:hover { 
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    box-shadow: 0 4px 8px rgba(200, 230, 201, 0.4);
    transform: translateY(-1px);
}

/* CENTRADO PERFECTO DEL TÍTULO */
.calendar-nav h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px; 
    font-weight: 600;
    color: #202124;
    margin: 0; 
    min-width: 220px;
    text-align: center;
}

/* RESPONSIVE: En celulares */
@media (max-width: 600px) {
    .calendar-nav {
        flex-direction: column;
        gap: 10px;
    }
    .calendar-nav h2 {
        position: static;
        transform: none;
        margin-bottom: 5px;
        font-size: 22px;
    }
    .calendar-nav button {
        margin-right: 4px;
        margin-bottom: 4px;
    }
}

/* ===== CALENDARIO - GRID ===== */
.calendar-grid {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.calendar-week {
    display: grid;
    grid-template-columns: 70px repeat(5, 1fr);
    border-bottom: 1px solid #e8eaed;
}

.calendar-week.header-row { background: #fafafa; }

.time-column { background: #fafafa; border-right: 1px solid #e8eaed; }

.time-slot {
    padding: 6px;
    text-align: center;
    font-size: 11px;
    color: #5f6368;
    border-bottom: 1px solid #e8eaed;
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.day-column {
    position: relative;
    border-right: 1px solid #e8eaed;
}

.day-column:last-child { border-right: none; }

.day-header {
    padding: 10px 6px;
    text-align: center;
    background: #fafafa;
    border-bottom: 1px solid #e8eaed;
    font-size: 12px;
    color: #5f6368;
}

.day-header .day-name { font-size: 10px; text-transform: uppercase; font-weight: 500; }
.day-header .day-number { font-size: 20px; font-weight: 300; margin-top: 2px; }

.day-header.today .day-number {
    background: #a8c7fa;
    color: #1f1f1f;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
}

.hour-slot {
    height: 60px;
    border-bottom: 1px solid #e8eaed;
    position: relative;
}

.hour-slot:hover { background: #f8f9fa; cursor: pointer; }

.half-hour-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed #e8eaed;
    pointer-events: none;
}

/* ===== RESERVAS EN EL CALENDARIO ===== */
.event {
    position: absolute;
    left: 2px;
    right: 2px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    overflow: hidden;
    cursor: pointer;
    border-left: 3px solid;
    z-index: 5;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.event:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
}

.event-title { 
    font-weight: 500; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.event-time { 
    font-size: 10px; 
    opacity: 0.85; 
}

.event-status {
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.9;
}

.event-confirmada {
    color: #1f1f1f !important;
    border-style: solid;
}

.event-confirmada .event-title {
    font-weight: 600;
    color: #1f1f1f !important;
}

.event-confirmada .event-time {
    color: #333 !important;
    opacity: 0.85;
}

.event-pendiente {
    border: 2px solid #000 !important;
    border-left: 4px solid #000 !important;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255,255,255,0.5) 5px,
        rgba(255,255,255,0.5) 10px
    ) !important;
}

.event-pendiente .event-title {
    font-weight: 600;
    color: #c5221f !important;
}

.event-pendiente .event-time {
    color: #c5221f !important;
    opacity: 0.9;
}

.event-pendiente .event-status {
    font-size: 9px;
    font-weight: 700;
    color: #c5221f !important;
    margin-top: 2px;
}

/* ===== MODALES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal.active { display: flex; }

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8eaed;
}

.modal-header h3 { 
    font-size: 20px; 
    font-weight: 500; 
    color: #202124; 
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5f6368;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #c5221f;
}

/* BOTONES DEL MODAL CENTRADOS */
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center; /* CENTRADOS */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8eaed;
    flex-wrap: wrap;
}

/* ===== TABLAS ===== */
table { width: 100%;  justify-content: center; border-collapse: collapse; }
table th, table td { 
    padding: 12px; 
    text-align: center; 
    border-bottom: 1px solid #e8eaed; 
    font-size: 13px; 
}
table th { 
    background: #fafafa; 
    font-weight: 600; 
    color: #5f6368; 
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* ===== EQUIPAMIENTO SELECTOR ===== */
.equipamiento-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1.5px solid #e8eaed;
    border-radius: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    transition: border-color 0.2s ease;
}

.equipamiento-item:hover {
    border-color: #a8c7fa;
}

.equipamiento-item label { 
    flex: 1; 
    margin: 0; 
    min-width: 100px; 
    font-size: 15px; 
    font-weight: 500;
}

.equipamiento-item input[type="number"] { 
    width: 70px; 
    padding: 6px; 
    border: 1.5px solid #dadce0;
    border-radius: 4px;
}

.stock-info { 
    font-size: 14px; 
    color: #5f6368; 
}

.checkbox-group { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin: 10px 0; 
}

.checkbox-group input[type="checkbox"] { 
    width: auto; 
    transform: scale(1.2);
}

.checkbox-group label { 
    margin: 0; 
    font-size: 14px; 
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pendiente { background: #fef7e0; color: #ea8600; }
.badge-confirmada { background: #e6f4ea; color: #137333; }
.badge-rechazada { background: #fce8e6; color: #c5221f; }
.badge-cancelada { background: #f1f3f4; color: #5f6368; }
.badge-devuelta { background: #e8f0fe; color: #1967d2; }

.notif-counter {
    background: #f28b82;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 600;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}

.alert-info { 
    background: #e8f0fe; 
    color: #1967d2; 
    border-left: 4px solid #a8c7fa; 
}

.alert-warning { 
    background: #fef7e0; 
    color: #ea8600; 
    border-left: 4px solid #fdd663; 
}

/* ===== COLOR PREVIEW ===== */
.color-preview {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    vertical-align: middle;
    margin-right: 8px;
    border: 2px solid #dadce0;
}

/* ===== BOTÓN FLOTANTE ===== */
.fab-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #a8c7fa 0%, #8ab4f8 100%);
    color: #1f1f1f;
    border: none;
    border-radius: 30px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(168, 199, 250, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    font-family: inherit;
}

.fab-button:hover {
    background: linear-gradient(135deg, #8ab4f8 0%, #669df6 100%);
    box-shadow: 0 6px 20px rgba(138, 180, 248, 0.5);
    transform: translateY(-3px);
}

.fab-button:active {
    transform: translateY(-1px);
}

/* ===== VISTA MÓVIL ===== */
.mobile-day-list { display: none; }

.mobile-event {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid;
    font-size: 13px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.mobile-event:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-event-title { 
    font-weight: 600; 
    margin-bottom: 4px; 
}

.mobile-event-detail { 
    font-size: 12px; 
    opacity: 0.85; 
}

.no-events { 
    color: #999; 
    font-size: 12px; 
    font-style: italic; 
    padding: 5px 0; 
}

.mobile-event-pendiente {
    border: 2px solid #000 !important;
    border-left: 4px solid #000 !important;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255,255,255,0.5) 5px,
        rgba(255,255,255,0.5) 10px
    ) !important;
}

.mobile-event-pendiente .mobile-event-title {
    color: #c5221f !important;
    font-weight: 600;
}

.mobile-event-pendiente .mobile-event-detail {
    color: #c5221f !important;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 768px) {
    .container { padding: 10px; }
    .header { padding: 10px 15px; }
    .header h1 { font-size: 16px; }
    
    .calendar-week {
        grid-template-columns: 50px repeat(5, 1fr);
    }
    
    .time-slot { height: 40px; font-size: 10px; }
    .hour-slot { height: 40px; }
    .day-header { padding: 6px 3px; }
    .day-header .day-name { font-size: 9px; }
    .day-header .day-number { font-size: 14px; }
    .day-header.today .day-number { width: 24px; height: 24px; font-size: 12px; }
    
    .event { font-size: 9px; padding: 2px 3px; }
    .event-title { font-size: 9px; }
    .event-time { font-size: 8px; }
    .event-status { font-size: 8px; }
    
    .modal-content { padding: 18px; }
    
    table th, table td { padding: 8px; font-size: 12px; }
    
    .admin-tabs { padding: 6px; gap: 4px; }
    .tab-btn { padding: 6px 10px; font-size: 12px; }
    
    .calendar-nav h2 { font-size: 18px; min-width: 160px; }
    .calendar-nav button { padding: 6px 12px; font-size: 12px; }
}

/* ===== RESPONSIVE: CELULAR ===== */
@media (max-width: 600px) {
    .calendar-grid.desktop-view { display: none; }
    .mobile-day-list { display: block; }
    
    .mobile-day {
        background: #fff;
        border-radius: 10px;
        margin-bottom: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        overflow: hidden;
    }
    
    .mobile-day-header {
        background: #fafafa;
        padding: 12px 15px;
        font-weight: 600;
        color: #5f6368;
        border-bottom: 1px solid #e8eaed;
        font-size: 14px;
    }
    
    .mobile-day-content { padding: 12px 15px; }
    
    .fab-button {
        bottom: 20px;
        right: 20px;
        padding: 14px 22px;
        font-size: 14px;
    }
}

/* ===== NOTIFICACIÓN TOAST ===== */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ===== LÍNEA DE HORA ACTUAL ===== */
.current-time-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ea4335;
    z-index: 20;
    pointer-events: none;
}

.current-time-line::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #ea4335;
    border-radius: 50%;
}

/* ===== COLUMNA DEL DÍA ACTUAL ===== */
.day-column.is-today {
    background-color: rgba(232, 240, 254, 0.35);
}

/* ===== MODAL DETALLE DE RESERVA - FUENTES ===== */
#reserva-detail-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    padding: 5px 0;
}

#reserva-detail-content p {
    margin-bottom: 12px;
    font-size: 16px;
}

#reserva-detail-content strong {
    color: #202124;
    font-weight: 600;
    display: inline-block;
    min-width: 160px;
}

#reserva-detail-content .badge {
    font-size: 14px;
    padding: 6px 14px;
    font-weight: 600;
    border-radius: 6px;
}

#reserva-detail-modal .modal-footer button {
    font-size: 15px;
    padding: 11px 20px;
}
/* ============================================
   CLASES DE UTILIDAD Y ESTILOS DE MODALES
   (Reemplazan los estilos en línea del index.php)
   ============================================ */

/* Ancho completo (para el botón de login) */
.w-100 { width: 100%; }

/* Títulos de secciones */
.section-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
    color: #202124;
}

/* Cajas de información en modales */
.box-info {
    background: #e8f0fe;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1.5px solid #a8c7fa;
}

.box-warning {
    background: #fef7e0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1.5px solid #fdd663;
}

.box-success {
    background: #e6f4ea;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1.5px solid #81c995;
}

/* Etiquetas destacadas */
.label-primary {
    font-weight: 600;
    color: #1967d2;
    font-size: 14px;
}

.label-warning {
    font-weight: 600;
    color: #ea8600;
    font-size: 14px;
}

.label-success {
    font-weight: 600;
    color: #137333;
    font-size: 14px;
}

/* Textos secundarios / ayuda */
.text-muted {
    color: #999;
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

.text-muted-inline {
    color: #999;
    font-size: 13px;
}

.text-dark-muted {
    font-weight: 400;
    color: #5f6368;
    font-size: 13px;
}

/* Checkboxes grandes */
.checkbox-lg {
    transform: scale(1.3);
    margin-right: 10px;
    cursor: pointer;
}

/* Selects destacados */
.select-highlight {
    border: 2px solid #a8c7fa !important;
}

.select-highlight:focus {
    box-shadow: 0 0 0 3px rgba(168, 199, 250, 0.2) !important;
}

/* Layouts flexibles */
.flex-row-gap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-group-flex {
    flex: 1;
    min-width: 120px;
    margin-bottom: 15px;
}

.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 8px; }
.hidden { display: none; }

/* Botón primario con peso extra (opcional, ya que el CSS base lo tiene, pero por si acaso) */
.btn-primary.fw-semibold {
    font-weight: 600;
}
/* ===== PAGINACIÓN ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
	text-align: center;
}
.pagination span {
    font-size: 13px;
    color: #5f6368;
}

.btn-small:disabled,
.btn-logout:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
/* ===== FILTROS DEL CALENDARIO ===== */
.calendar-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 13px;
    color: #5f6368;
}

.calendar-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
/* Buscador de tablas (docentes) */
.buscador-tabla {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--borde, var(--gris-borde, #ccc));
    border-radius: 2px;
    background: var(--crema, var(--noche, var(--bg-negro, #fff)));
    color: var(--tinta, var(--marfil, var(--blanco-hueso, #333)));
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}
.buscador-tabla:focus {
    outline: none;
    border-color: var(--bronce-soft, var(--oro-soft, var(--rojo-sangre, #a8862a)));
}
/* ============================================
   COMPONENTES.CSS
   Buscadores, filtros y componentes auxiliares
   ============================================ */

/* Buscador para selects */
.search-select-wrap {
    position: relative;
    width: 100%;
}

.search-select-input {
    width: 100%;
    padding: 7px 10px;
    margin-bottom: 5px;
    border: 1px solid var(--borde, var(--gris-borde, #ccc));
    border-radius: 2px;
    background: var(--crema, var(--noche, var(--bg-negro, #fff)));
    color: var(--tinta, var(--marfil, var(--blanco-hueso, #333)));
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.search-select-input:focus {
    outline: none;
    border-color: var(--bronce-soft, var(--oro-soft, var(--rojo-sangre, #a8862a)));
}

/* Selects de filtro del calendario */
.calendar-filters select {
    padding: 4px 8px;
    border: 1px solid var(--borde, var(--gris-borde, #ccc));
    border-radius: 2px;
    background: var(--crema, var(--noche, var(--bg-negro, #fff)));
    color: var(--tinta, var(--marfil, var(--blanco-hueso, #333)));
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

/* Buscador de tablas */
.buscador-tabla {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--borde, var(--gris-borde, #ccc));
    border-radius: 2px;
    background: var(--crema, var(--noche, var(--bg-negro, #fff)));
    color: var(--tinta, var(--marfil, var(--blanco-hueso, #333)));
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.buscador-tabla:focus {
    outline: none;
    border-color: var(--bronce-soft, var(--oro-soft, var(--rojo-sangre, #a8862a)));
}

/* Filtros rápidos por recurso/recinto */
#filtro-recursos-rapidos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    flex: 1;
}

.filtro-recurso-rapido {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
}

.filtro-recurso-rapido input[type="checkbox"] {
    cursor: pointer;
}

.btn-solo {
    padding: 2px 7px;
    font-size: 10px;
    line-height: 1.2;
    border: 1px solid var(--borde, var(--gris-borde, #ccc));
    border-radius: 2px;
    background: var(--panel-2, var(--bg-panel-2, #f1f3f4));
    color: var(--tinta, var(--marfil, var(--blanco-hueso, #333)));
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.btn-solo:hover {
    border-color: var(--bronce-soft, var(--oro-soft, var(--rojo-sangre, #a8862a)));
    background: var(--crema, var(--noche, var(--bg-negro, #e8eaed)));
}